package com.andaily.web.controller.developer.backlog;

import com.andaily.service.BacklogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Date: 13-9-10
 *
 * @author Shengzhao Li
 */
@Controller
@RequestMapping("/backlog_action")
public class BacklogActionController {

    @Autowired
    private BacklogService backlogService;


    @RequestMapping("archive/{guid}")
    public String archive(@PathVariable("guid") String guid) {
        backlogService.archiveBacklog(guid);
        return "redirect:../../backlog_overview?alert=archiveBacklogInfo";
    }


}
